﻿using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.Text.Editor.DragDrop;
using Microsoft.VisualStudio.Utilities;

namespace SandcastleUtils.Drop
{
    [Export(typeof(IDropHandlerProvider))]
    [DropFormat(TestDropHandlerProvider.FileDropDataFormat)]
    [DropFormat(TestDropHandlerProvider.VSProjectItemDataFormat)]
    [Name("TestDropHandler")]
    [Order(Before="DefaultFileDropHandler")] 
    internal class TestDropHandlerProvider : IDropHandlerProvider
    {
        internal const string VSProjectItemDataFormat = "CF_VSSTGPROJECTITEMS";
        internal const string FileDropDataFormat = "FileDrop";

        #region IDropHandlerProvider Members

        public IDropHandler GetAssociatedDropHandler(Microsoft.VisualStudio.Text.Editor.IWpfTextView wpfTextView)
        {
            return new DropHandFactory();
        }

        #endregion
    }
}
